package com.api.shopapi.service;


import com.api.shopapi.entity.Article;
import com.api.shopapi.entity.dto.ArticleDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface ArticleService {

    int insert(Article article);

    int update(Article article);

    Article getByArticleCode(String articleCode);

    PageInfo<ArticleDTO> getPageList(int pageIndex, int pageSize, String governmentCode, String title,
                                     int status, String startTime, String endTime, String communityCode, String networkCode);

    PageInfo<ArticleDTO> pageByGovCode(int pageIndex, int pageSize, String governmentCode);

}
